package org.jadapter.examples.payment;

import org.jadapter.annotations.Adapter;

/**
 * @author pjesi
 * Date: Jan 19, 2011
 * Time: 11:25:50 PM
 */
@Adapter
public class RansomPaymentBean implements Payment{


    private Ransom ransom;

    public RansomPaymentBean(Ransom ransom) {
        this.ransom = ransom;
    }


    public void pay() {
        long amountToPay = ransom.getCash();
        System.out.println("Amount payed is " + amountToPay);
    }

}
